provider Projects GET
/api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/stats/ @utdk/sentry
/api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/stats/ Caution
This endpoint may change in the future without notice.
Return a set of points representing a normalized timestamp and the
number of events seen in the period.
Query ranges are limited to Sentry's configured time-series resolutions.
- organization_id_or_slug path required
- The ID or slug of the organization.
- string
- project_id_or_slug path required
- The ID or slug of the project.
- string
- stat query
- The name of the stat to query `("received", "rejected", "blacklisted", "generated")`.
- enum: received, rejected, blacklisted, generated
- since query
- A timestamp to set the start of the query in seconds since UNIX epoch.
- string
- until query
- A timestamp to set the end of the query in seconds since UNIX epoch.
- string
- resolution query
- An explicit resolution to search for (one of `10s`, `1h`, and `1d`).
- enum: 10s, 1h, 1d
Try it
Authentication
Configure credentials for API Reference
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import sentry from '@utdk/sentry';
await sentry.retrieveEventCountsForAProject()